#ifndef MAINMENU_H
#define MAINMENU_H

#include <QDialog>
#include "widget.h"
#include "guanqiachoose.h"
#include "config.h"
#include<QPaintEvent>
#include <QApplication>
#include <QMessageBox>
#include <QIcon>
#include <QPixmap>
namespace Ui {
class MainMenu;
}

class MainMenu : public QDialog
{
    Q_OBJECT

public:
    explicit MainMenu(QWidget *parent = 0);
    ~MainMenu();
    void initScene(); //初始化窗口

    Widget * mainWidget; //主窗口
    guanQiaChoose * gqc; //选择关卡对话框
    QPixmap pix;//背景图
    QSound  * play;
    QPixmap pix5;



signals:
    //void sendLoginUser(); //用户登录成功信号
    void sendMoShi(); //发送模式选择完成信号
    void sendScore(int score);
public slots:
//    void closeMainMenu();
    void showMainMenu();


private slots:
    void on_chuangGuan_clicked(); //点击闯关按钮

    void on_wuJin_clicked(); //点击无尽按钮

    void on_exit_clicked(); //点击退出按钮

    void on_about_clicked(); //点击关于按钮
protected:
    void paintEvent(QPaintEvent * event);

private:
    Ui::MainMenu *ui;
};

#endif // MAINMENU_H
